
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dizhi"></use>
                    </svg>
                    <div class="name">地址</div>
                    <div class="fontclass">#icon-dizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pei"></use>
                    </svg>
                    <div class="name">赔</div>
                    <div class="fontclass">#icon-pei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jisukaidian"></use>
                    </svg>
                    <div class="name">极速开店</div>
                    <div class="fontclass">#icon-jisukaidian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dunpai"></use>
                    </svg>
                    <div class="name">盾牌</div>
                    <div class="fontclass">#icon-dunpai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-unie605"></use>
                    </svg>
                    <div class="name">商城</div>
                    <div class="fontclass">#icon-unie605</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pinzhibaozhang"></use>
                    </svg>
                    <div class="name">品质保障</div>
                    <div class="fontclass">#icon-pinzhibaozhang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dian"></use>
                    </svg>
                    <div class="name">点</div>
                    <div class="fontclass">#icon-dian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconback"></use>
                    </svg>
                    <div class="name">hz-icon-back</div>
                    <div class="fontclass">#icon-hziconback</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconcart"></use>
                    </svg>
                    <div class="name">hz-icon-cart</div>
                    <div class="fontclass">#icon-hziconcart</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondingdan"></use>
                    </svg>
                    <div class="name">hz-icon-dingdan</div>
                    <div class="fontclass">#icon-hzicondingdan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconfenlei"></use>
                    </svg>
                    <div class="name">hz-icon-fenlei</div>
                    <div class="fontclass">#icon-hziconfenlei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconhome"></use>
                    </svg>
                    <div class="name">hz-icon-home</div>
                    <div class="fontclass">#icon-hziconhome</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconme"></use>
                    </svg>
                    <div class="name">hz-icon-me</div>
                    <div class="fontclass">#icon-hziconme</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconmenu"></use>
                    </svg>
                    <div class="name">hz-icon-menu</div>
                    <div class="fontclass">#icon-hziconmenu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconsearch"></use>
                    </svg>
                    <div class="name">hz-icon-search</div>
                    <div class="fontclass">#icon-hziconsearch</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconshaixuan"></use>
                    </svg>
                    <div class="name">hz-icon-shaixuan</div>
                    <div class="fontclass">#icon-hziconshaixuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconxiangxia"></use>
                    </svg>
                    <div class="name">hz-icon-xiangxia</div>
                    <div class="fontclass">#icon-hziconxiangxia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondown"></use>
                    </svg>
                    <div class="name">hz-icon-down</div>
                    <div class="fontclass">#icon-hzicondown</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconup"></use>
                    </svg>
                    <div class="name">hz-icon-up</div>
                    <div class="fontclass">#icon-hziconup</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconright"></use>
                    </svg>
                    <div class="name">hz-icon-right</div>
                    <div class="fontclass">#icon-hziconright</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconshare"></use>
                    </svg>
                    <div class="name">hz-icon-share</div>
                    <div class="fontclass">#icon-hziconshare</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconaddress"></use>
                    </svg>
                    <div class="name">hz-icon-address</div>
                    <div class="fontclass">#icon-hziconaddress</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondingdan2"></use>
                    </svg>
                    <div class="name">hz-icon-dingdan2</div>
                    <div class="fontclass">#icon-hzicondingdan2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconquan"></use>
                    </svg>
                    <div class="name">hz-icon-quan</div>
                    <div class="fontclass">#icon-hziconquan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconshoucang"></use>
                    </svg>
                    <div class="name">hz-icon-shoucang</div>
                    <div class="fontclass">#icon-hziconshoucang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconshoucangok"></use>
                    </svg>
                    <div class="name">hz-icon-shoucangok</div>
                    <div class="fontclass">#icon-hziconshoucangok</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconok"></use>
                    </svg>
                    <div class="name">hz-icon-ok</div>
                    <div class="fontclass">#icon-hziconok</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconhua"></use>
                    </svg>
                    <div class="name">hz-icon-hua</div>
                    <div class="fontclass">#icon-hziconhua</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconadd"></use>
                    </svg>
                    <div class="name">hz-icon-add</div>
                    <div class="fontclass">#icon-hziconadd</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconjian"></use>
                    </svg>
                    <div class="name">hz-icon-jian</div>
                    <div class="fontclass">#icon-hziconjian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondel"></use>
                    </svg>
                    <div class="name">hz-icon-del</div>
                    <div class="fontclass">#icon-hzicondel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconedit"></use>
                    </svg>
                    <div class="name">hz-icon-edit</div>
                    <div class="fontclass">#icon-hziconedit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconmoney"></use>
                    </svg>
                    <div class="name">hz-icon-money</div>
                    <div class="fontclass">#icon-hziconmoney</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconweifu"></use>
                    </svg>
                    <div class="name">hz-icon-weifu</div>
                    <div class="fontclass">#icon-hziconweifu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconzhi"></use>
                    </svg>
                    <div class="name">hz-icon-zhi</div>
                    <div class="fontclass">#icon-hziconzhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconpricelist"></use>
                    </svg>
                    <div class="name">hz-icon-pricelist</div>
                    <div class="fontclass">#icon-hziconpricelist</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconprolist"></use>
                    </svg>
                    <div class="name">hz-icon-prolist</div>
                    <div class="fontclass">#icon-hziconprolist</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconx"></use>
                    </svg>
                    <div class="name">hz-icon-x</div>
                    <div class="fontclass">#icon-hziconx</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicongerenpwd"></use>
                    </svg>
                    <div class="name">hz-icon-geren-pwd</div>
                    <div class="fontclass">#icon-hzicongerenpwd</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicongerensex"></use>
                    </svg>
                    <div class="name">hz-icon-geren-sex</div>
                    <div class="fontclass">#icon-hzicongerensex</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicongerentel"></use>
                    </svg>
                    <div class="name">hz-icon-geren-tel</div>
                    <div class="fontclass">#icon-hzicongerentel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicongerentouxiang"></use>
                    </svg>
                    <div class="name">hz-icon-geren-touxiang</div>
                    <div class="fontclass">#icon-hzicongerentouxiang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicongerenxingming"></use>
                    </svg>
                    <div class="name">hz-icon-geren-xingming</div>
                    <div class="fontclass">#icon-hzicongerenxingming</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicongerenyoubian"></use>
                    </svg>
                    <div class="name">hz-icon-geren-youbian</div>
                    <div class="fontclass">#icon-hzicongerenyoubian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconx2"></use>
                    </svg>
                    <div class="name">hz-icon-x2</div>
                    <div class="fontclass">#icon-hziconx2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondaifahuo"></use>
                    </svg>
                    <div class="name">hz-icon-daifahuo</div>
                    <div class="fontclass">#icon-hzicondaifahuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondaifukuan"></use>
                    </svg>
                    <div class="name">hz-icon-daifukuan</div>
                    <div class="fontclass">#icon-hzicondaifukuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondaipingjia"></use>
                    </svg>
                    <div class="name">hz-icon-daipingjia</div>
                    <div class="fontclass">#icon-hzicondaipingjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicondaishouhuo"></use>
                    </svg>
                    <div class="name">hz-icon-daishouhuo</div>
                    <div class="fontclass">#icon-hzicondaishouhuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconmyerma"></use>
                    </svg>
                    <div class="name">hz-icon-myerma</div>
                    <div class="fontclass">#icon-hziconmyerma</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconmyfanli"></use>
                    </svg>
                    <div class="name">hz-icon-myfanli</div>
                    <div class="fontclass">#icon-hziconmyfanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconmyyincard"></use>
                    </svg>
                    <div class="name">hz-icon-myyincard</div>
                    <div class="fontclass">#icon-hziconmyyincard</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hzicontuikuan"></use>
                    </svg>
                    <div class="name">hz-icon-tuikuan</div>
                    <div class="fontclass">#icon-hzicontuikuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconi"></use>
                    </svg>
                    <div class="name">hz-icon-i</div>
                    <div class="fontclass">#icon-hziconi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconsharegetgold"></use>
                    </svg>
                    <div class="name">hz-icon-shareGetGold</div>
                    <div class="fontclass">#icon-hziconsharegetgold</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hz-icon-pintuan"></use>
                    </svg>
                    <div class="name">hz-icon-pintuan</div>
                    <div class="fontclass">#icon-hz-icon-pintuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hz-icon-xiaoxi"></use>
                    </svg>
                    <div class="name">hz-icon-xiaoxi</div>
                    <div class="fontclass">#icon-hz-icon-xiaoxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hz-icon-qiandao"></use>
                    </svg>
                    <div class="name">hz-icon-qiandao</div>
                    <div class="fontclass">#icon-hz-icon-qiandao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hziconxiangxia-copy"></use>
                    </svg>
                    <div class="name">hz-icon-xiangxia</div>
                    <div class="fontclass">#icon-hziconxiangxia-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconMT_search"></use>
                    </svg>
                    <div class="name">iconMT_search</div>
                    <div class="fontclass">#icon-iconMT_search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconMT_fenlei"></use>
                    </svg>
                    <div class="name">iconMT_fenlei</div>
                    <div class="fontclass">#icon-iconMT_fenlei</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
